﻿using Microsoft.AspNetCore.Mvc;
using ZR.Admin.WebApi.Filters;
using ZR.Model.Content.Dto;

namespace ZR.Admin.WebApi.Controllers.JcApi
{
    /// <summary>
    /// 内容管理
    /// </summary>
    [Verify]
    [Route("ceshi")]
    [ApiExplorerSettings(GroupName = "jcapi")]
    public class CeShiController : BaseController
    {
        /// <summary>
        /// 查询我的文章列表
        /// </summary>
        /// <returns></returns>
        [HttpGet("list")]
        public IActionResult QueryMyList([FromQuery] ArticleQueryDto parm)
        {
            parm.UserId = HttpContext.GetUId();
            var data = new List<dynamic>(){
                {
                    new
                    {
                        name = "aa",
                        avg = 1
                    }},
                  {
                    new
                    {
                        name = "bb",
                        avg = 1
                    }}
            };
            return SUCCESS(data);
        }


    }

}
